(function(w,$){
    var fn = {
        version:'0.0.1',
        on:function(text){
            var html = '<div class="mask-box protocolbox"><div class="position-middle-center bgff" style="border-radius:5px;z-index: 99;"><p style="font-size:20px;text-align:center;font-weight:bold;padding:10px 0;border-bottom:1px solid #f0f0f0;">注册协议</p><img id="closebtn_" style="position:absolute;right:10px;top:10px;width:20px;cursor:pointer;" src="/images/close_btn1.png"><div style="width:800px;height:500px;overflow:auto;margin-bottom:20px;"><div style="padding:20px;">'+text+'</div></div></div></div>'
            $(w.document.body).append(html).find('.protocolbox #closebtn_').on('click',function(){
                $('.protocolbox').hide();
            });
        },
        fggz:function(text){
            var html = '<div class="mask-box protocolbox"><div class="position-middle-center bgff" style="border-radius:5px;z-index: 99;"><p style="font-size:20px;text-align:center;font-weight:bold;padding:10px 0;border-bottom:1px solid #f0f0f0;">软文发稿规则</p><img id="closebtn_" style="position:absolute;right:10px;top:10px;width:20px;cursor:pointer;" src="/images/close_btn1.png"><div style="width:800px;height:500px;overflow:auto;margin-bottom:20px;"><div style="padding:20px;">'+text+'</div></div></div></div>'
            $(w.document.body).append(html).find('.protocolbox #closebtn_').on('click',function(){
                $('.protocolbox').hide();
            });
        },
        task:function(text){
            var html = '<div class="mask-box taskbox">'
                            +'<div class="position-middle-center bgff" style="border-radius:5px;z-index: 99;">'
                               +'<p style="font-size:20px;text-align:center;font-weight:bold;padding:10px 0;border-bottom:1px solid #f0f0f0;">请选择任务类型</p>'
                                +'<img id="closebtn_" style="position:absolute;right:-15px;top:-15px;width:30px;cursor:pointer;border: 6px solid #fff; border-radius: 100px;background: #fff;" src="/images/close_btn1.png">'
                                +'<div style="width:350px;height:150px;overflow:auto;margin-bottom:20px;">'
                                    + text
                                +'</div>'
                            +'</div>'
                        +'</div>'
            $(w.document.body).append(html).find('.taskbox #closebtn_').on('click',function(){
                $('.taskbox').hide();
            });
        }
    }
    return w.fn = fn
})(window,jQuery)